import http from '../utils/request'
export const getPermissionList = (params) => {
    return http.get('/permissions', params)
}

export const getInit = () => {
    return http.get('/permissions/params')
}

export const addPermission = (data) => {
    return http.post('/permissions', data)
}

export const editPermission = (permission, data) => {
    return http.put(`/permissions/${permission}`, data)
}

export const deletePermission = (permission) => {
    return http.delete(`/permissions/${permission}`)
}
